





//
//  Qrcodem.m
//  EcmDoctor
//
//  Created by Mac on 16/2/28.
//  Copyright © 2016年 张进. All rights reserved.
//

#import "Qrcodem.h"

@implementation Qrcodem
+(void)updateAddNumIsFinishById:(NSString *)ask_info_id success:(void (^)(NetWorkBaseResponse *))success failure:(void (^)(NSError *))failure
{
   
    NetWorkBaseRequest *req = [[NetWorkBaseRequest alloc] init];
    //请求参数
      NSString *docId= [SSKeychain passwordForService:APP_SERVICE_NAME account:APP_DOCTORINFOID_KEY];
    req.moduleName = @"DoctorRS";
    req.methodName = @"updateAddNumIsFinish";
    [req setValue:docId forKey:@"doctor_info_id"];
    [req setValue:ask_info_id forKey:@"ask_info_id"];
    
    
    [NetWorkUtil requestWithPOST:req success:^(NetWorkBaseResponse *responseObject) {
        NSError *error = nil;
        
        if (responseObject.code.integerValue == 1) {
            if (!responseObject.data) {
                success(nil);
                return;
            }
            NSLog(@"--------------%@",responseObject);
                      
            if (error) {
                failure(error);
                return;
            }
         success(responseObject);
            
        }
        else{
            error = [NSError errorWithDomain:responseObject.msg code:responseObject.code.integerValue userInfo:nil];
            failure(error);
        }
        
    } failure:^(NSError *error) {
        failure(error);
        
    } cache:NO];
    

}
@end
